import request from '@/utils/request'

// 转移规则列表
export function transferRulesList(query) {
  return request({
    url: '/ny-iqc/transferRules/list',
    method: 'get',
    params: query
  })
}

// 查询评价测量技术详细
export function getTechnique(id) {
  return request({
    url: '/qcmasterdata/measuringTechnique/' + id,
    method: 'get'
  })
}

// 新增评价测量技术
export function addRules(data) {
  return request({
    url: '/ny-iqc/transferRules',
    method: 'post',
    data: data
  })
}

export function editRules(data) {
  return request({
    url: '/ny-iqc/transferRules',
    method: 'put',
    data: data
  })
}

export function delRule(id) {
  return request({
    url: '/ny-iqc/transferRules/'+id,
    method: 'delete'
  })
}




// 转移规则列表2
export function samplingPlanlistAPI(query) {
  return request({
    url: '/ny-iqc/samplingPlan/list2',
    method: 'get',
    params: query
  })
}
export function samplingPlandelAPI(data) {
  return request({
    url: '/ny-iqc/samplingPlan/delete',
    method: 'put', 
    data:data
  })
}

export function samplingPlaneditAPI(data) {
  return request({
    url: '/ny-iqc/samplingPlan/edit',
    method: 'post',
    data: data
  })
}
export function samplingPlanaddAPI(data) {
  return request({
    url: '/ny-iqc/samplingPlan/add',
    method: 'post',
    data: data
  })
}